Skip to content

Add tests for numpy hstack and vstack utilities - #46

Merged
dprada merged 1 commit into
mainfrom
codex/run-tests-with-pytest
Sep 25, 2025
Merged

Add tests for numpy hstack and vstack utilities#46
dprada merged 1 commit into
mainfrom
codex/run-tests-with-pytest

Conversation

@dprada

@dprada dprada commented Sep 25, 2025

Copy link
Copy Markdown
Collaborator

Summary

  • add coverage for numpy hstack conversions and invalid value type handling
  • add coverage for numpy vstack conversions, tuple handling, and error path

Testing

  • pytest

https://chatgpt.com/codex/tasks/task_e_68d5c25366688326a6947f58b8081239

@codecov

codecov Bot commented Sep 25, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.98%. Comparing base (1dae4d3) to head (24aa386).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

@dprada
dprada requested a review from Copilot September 25, 2025 22:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive test coverage for numpy utility functions hstack and vstack in the pyunitwizard library. The tests validate unit conversions, different value type outputs, and error handling for invalid parameters.

  • Adds test coverage for vstack function including numpy array shape validation, tuple value type conversion, and invalid value type error handling
  • Adds test coverage for hstack function including unit conversion validation, list value type conversion, and invalid value type error handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/utils/numpy/test_vstack.py New test file with 3 test cases covering vstack functionality including shape validation, tuple conversion, and error handling
tests/utils/numpy/test_hstack.py New test file with 3 test cases covering hstack functionality including unit conversion, list conversion, and error handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dprada
dprada merged commit 1bb3006 into main Sep 25, 2025
7 checks passed
@dprada
dprada deleted the codex/run-tests-with-pytest branch September 26, 2025 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants